package com.homework9;

public class demo01 {
    public static void main(String[] args) {
        getsum(10);
    }

    private static int getsum(int i) {
        if(i==1){
            System.out.println("递归结束");
            return 1;
        }
        return i+getsum(i-1);
    }
}
